<?php

class Flexical_Admin_Message
{
	public $type;
	public $content;

	public static $FATAL = 1;
	public static $ERROR = 2;
	public static $WARNING = 3;
	public static $INFO = 4;
	public static $DEBUG = 5;

	public function __construct( $type = 0, $content = null )
	{
		$this->type = $type;
		$this->content = $content;
	}
}

class Flexical_Admin_Fatal_Message extends Flexical_Admin_Message
{
	public function __construct( $content = null )
	{
		parent::__construct( Flexical_Admin_Message::$FATAL, $content );
	}
}

class Flexical_Admin_Error_Message extends Flexical_Admin_Message
{
	public function __construct( $content = null )
	{
		parent::__construct( Flexical_Admin_Message::$ERROR, $content );
	}
}

class Flexical_Admin_Warning_Message extends Flexical_Admin_Message
{
	public function __construct( $content = null )
	{
		parent::__construct( Flexical_Admin_Message::$WARNING, $content );
	}
}

class Flexical_Admin_Info_Message extends Flexical_Admin_Message
{
	public function __construct( $content = null )
	{
		parent::__construct( Flexical_Admin_Message::$INFO, $content );
	}
}

class Flexical_Admin_Debug_Message extends Flexical_Admin_Message
{
	public function __construct( $content = null )
	{
		parent::__construct( Flexical_Admin_Message::$DEBUG, $content );
	}
}

?>
